package com.xxl.job.admin.provider.service;

import com.xxl.job.admin.provider.dto.XxlJobInfoDto;
import com.xxl.job.admin.provider.service.impl.JobApiServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "xxl-job-admin-provider", fallback = JobApiServiceImpl.class)
public interface JobApiService {


    /**
     * xxl-job 保存任务
     * @param
     * @return
     */
    @PostMapping(value = "/xxl-job-admin/xxl-job/job-info/saveJobInfo", consumes = MediaType.APPLICATION_JSON_VALUE)
    Integer save(XxlJobInfoDto xxlJobInfoDto);
}
